Text, Numbers & Booleans
These are the fundamental building blocks of most expressions in Talos.
🔤 Text (String)​
A sequence of characters. In expressions, text must be wrapped in double quotes: "My Text".
Properties​
| Property | Description |
|---|---|
Length | Returns the total number of characters in the text. |
Empty | Returns true if the text contains no characters. |
ToLowerCase | Returns a copy of the text in all lowercase letters. |
ToUpperCase | Returns a copy of the text in all uppercase letters. |
GetType | Returns the string "string". |
Functions​
| Function | Description |
|---|---|
Append(text) | Adds the specified text to the end of the current text. |
Split(delimiter) | Splits the text into a List using the specified delimiter (e.g., ${Var}.Split(",")). |
Substring(start, length) | Extracts a portion of the text starting at start with the specified length. |
IndexOf(substring) | Returns the position (index) of the first occurrence of the substring, or -1 if not found. |
Replace(old, new) | Replaces the first occurrence of old with new. |
ReplaceLast(old, new) | Replaces the last occurrence of old with new. |
ReplaceAll(old, new) | Replaces all occurrences of old with new. |
StartsWith(prefix) | Returns true if the text starts with the specified prefix. |
EndsWith(suffix) | Returns true if the text ends with the specified suffix. |
🔢 Numbers (Integer & Double)​
Talos supports both whole numbers (Integer) and decimal numbers (Double).
Properties​
| Property | Description |
|---|---|
GetType | Returns "integer" or "double". |
toString | Converts the number to a text string. |
Operators​
Numbers support standard mathematical operators: +, -, *, /, and % (modulo).
✅ Boolean (True/False)​
A type that can only be either true or false.
Properties​
| Property | Description |
|---|---|
GetType | Returns "boolean". |
toString | Converts the value to the text "true" or "false". |
Operators​
Booleans support logical operators: && (AND), || (OR), and ! (NOT).